package com.yans.views
{
	import flash.geom.Point;

	public class IsoUtil
	{ 
		public static var CORRECT_VALUE:Number = (Math.cos((Math.PI / 6)) * Math.SQRT2);
		
		public static function IsoToScreen(_arg1:Point3D):Point{
			var _local2:Number = (_arg1.x - _arg1.z);
			var _local3:Number = ((_arg1.y * CORRECT_VALUE) + ((_arg1.x + _arg1.z) * 0.5));
			return (new Point(_local2, _local3));
		}
		public static function ScreenToIso(_arg1:Point):Point3D{
			var _local2:Number = (_arg1.y + (_arg1.x * 0.5));
			var _local3:Number = 0;
			var _local4:Number = (_arg1.y - (_arg1.x * 0.5));
			return (new Point3D(_local2, _local3, _local4));
		}
	}
}